import {
  get,
  post,
  //postForm,
} from "@/utils/http";
const packageName = `/back-api`;

/**
 * 内部转移单
 */
// 获取绑定转入/转出鱼池列表
export function getDataHisFishpondUserSearch(params) {
  return get(
    `${packageName}/dataHisFishpondUserSearch/getDataHisFishpondUserSearch`,
    params
  );
}
// 获取绑定鱼池列表
export function getObjFishpondList(params) {
  return get(`${packageName}/objFishpond/getObjFishpondList`, params);
}
// 获取全部排列表
export function getObjFishpondRows(params) {
  return get(`${packageName}/objFishpond/getObjFishpondRows`, params);
}
// 获取全部鱼类型（公司id）
export function getObjFishTypes(params) {
  return get(`${packageName}/ObjFishType/getObjFishTypes`, params);
}
// 获取全部卵径
export function getObjFishpondDetails(params) {
  return get(
    `${packageName}/dataHisFishpondUserSearch/getObjFishpondDetails`,
    params
  );
}
// 生成内部转移单
export function createTransferOrder(params) {
  return get(
    `${packageName}/dataHisFishpondUserSearch/createTransferOrder`,
    params
  );
}
// 绑定转出/转入鱼池
export function saveDataHisFishpondUserSearch(params) {
  return post(
    `${packageName}/dataHisFishpondUserSearch/saveDataHisFishpondUserSearch`,
    params
  );
}
// 保存内部转移记录
export function createTransferDatas(params) {
  return post(
    `${packageName}/dataHisFishpondUserSearch/createTransferDatas`,
    params
  );
}

/**
 * 内部转移记录
 */
// 获取内部转移记录列表
export function getDataTransferOrderList(params) {
  return get(
    `${packageName}/dataHisFishpondUserSearch/getDataTransferOrderList`,
    params
  );
}
// 获取内部转移记录详情
export function getDataTransferOrderdetails(params) {
  return get(
    `${packageName}/dataHisFishpondUserSearch/getDataTransferOrderdetails`,
    params
  );
}
// 审核内部转移单
export function approveDataTransferOrder(params) {
  return post(
    `${packageName}/dataHisFishpondUserSearch/approveDataTransferOrder`,
    params
  );
}
// 弃审核
export function giveUpApproveDataAdjustOrder(params) {
  return post(
    `${packageName}/dataAdjustOrder/giveUpApproveDataAdjustOrder`,
    params
  );
}
